@charset "utf-8";
.head{
    width: 100%;
    height: 48px;
    background: #333;
    .h_box{
        width: 1080px;
        height: 100%;
        margin: 0 auto;
        .h_box_r{
            text-align: right;
            div{
                display: inline-block;
                height: 48px;
                line-height: 48px;
                padding: 0 8px;
                font-size: 14px;
                a{
                    color: #e7e7e7;
                }
            }
            span{
                display: inline-block;
                border-left: 1px solid #666;
                height: 16px;
                vertical-align: middle;
            }
            .h_box_r1{
                position: relative;
                a{
                    margin-left: 8px;
                    &:hover{
                        color: #fff;
                    }
                }
                // 后面写入，登录之后使用的
                .i1{
                    font-size: 24px;
                    padding: 3px;
                    vertical-align: middle;
                    text-align: center;
                }
                .i2{
                    font-size: 14px;
                    padding: 8px;
                    color: #e7e7e7;
                    vertical-align: middle;
                    text-align: center;
                }
                a{
                    font-size: 14px;
                    color: #e7e7e7;
                }
                #logindexHeatActive{
                    position: absolute;
                    top: 48px;
                    left: 50%;
                    transform: translateX(-50%);
                    z-index: 10;
                    height: 210px;
                    line-height: 0;
                    display: none;
                    ul{
                        background: #fff;
                        text-align: center;
                        box-shadow: 0 0 10px 1px rgba($color: #777, $alpha: 0.5);
                        li{
                            height: 35px;
                            width: 80px;
                            padding: 0 10px;
                            display: inline-block;
                            line-height: 35px;
                            margin-top: -10px;
                            color: #666;
                            font-size: 14px;
                            margin: 0;
                            cursor: pointer;
                            &:hover{
                                background: #845f3f;
                                color: #fff;
                            }
                        }
                    }
                }

                // 结束
            }
            .h_box_r3 {
                padding: 0 8px 0 1px;
                i{
                    font-size: 20px;
                    padding: 5px;
                    vertical-align: middle; 
                }
            }
            .h_box_r4 {
                padding: 0 8px 0 8px;
                position: relative;
                &:hover .box_r4_a{
                    color: #fff;
                }
                &:hover .h_box_r4_list{
                    display: block;
                }
                i{
                    font-size: 14px;
                    padding: 8px;
                    vertical-align: middle; 
                }
                /* 导航栏的隐藏列表 */
                .h_box_r4_list{
                    position: absolute;
                    width: 150px;
                    top: 48px;
                    left: 0;
                    background: #fff;
                    color: #333;
                    box-shadow: 0px 3px 10px 0.2px #eee;
                    display: none;
                    li{
                        cursor: pointer;
                        text-align: center;
                        height: 35px;
                        line-height: 35px;
                        a{
                            color: #666;
                        }
                        &:hover{
                            background: #845f3f;
                            a{color: #fff;}
                        }
                    }
                }
            }
            .h_box_r2,.h_box_r3 {
                cursor: pointer;
                &:hover a{
                    color: #fff;
                }
            } 
        }
    }
}


// 搜索框
.search{
    width: 1080px;
    height: 51px;
    padding-top: 30px;
    padding-bottom: 5px;
    margin: 0 auto;
    background: #fff;
    z-index: 90;
    .search_none{
        float: left;
        width: 60px;
        height: 51px;
        padding: 0 70px 0 10px;
    }
    .search_logo{
        float: left;
        width: 123px;
        height: 51px;
        cursor: pointer;
        img{
            display: block;
            width: 123px;
            height: 51px;
        }
    }
    .search_buy{
        float: left;
        line-height: 51px;
        height: 51px;
        font-size: 18px;
        color: #666;
        cursor: pointer;
    }
    .search_box{
        float: right;
        width: 281px;
        height: 42px;
        border-bottom: 1px solid #e7e7e7;
        &:hover {
            border-bottom: 1px solid #845f3f;
        }

        i{
            font-size: 20px;
            padding: 5px;
            vertical-align: bottom;
            &:hover{
                color: #845f3f;
            }
        }
        div{
            display: inline-block;
            width: 245px;
            height: 35px;
            input{
                width: 245px;
                height: 18px;
                margin-top: 15px;
                border: 0;
            }
        }
    }
    p{
        float: right;
        width: 30px;
        height: 30px;
        text-align: center;
        margin-top: 16px;
        margin-left: 6px;
        &:hover{
            color: #845f3f;
        }
        i{
            font-size: 20px;
        }
    }
}

// 商品图片，商品介绍布局

main{
    width: 100%;
    border-top: 1px solid #e7e7e7;
    padding: 60px 0 100px 0;
    .topbox{
        width: 1080px;
        margin: 0 auto;
        margin-bottom: 67px;
        .topbox_l{
            cursor: pointer;
            position: relative;
            float: left;
            width: 465px;
            height: 374px;
            margin-right: 46px;
            .topbox_l_bigimg{
                width: 372px;
                height: 372px;
                float: left;
                img{
                    display: block;
                    width: 372px;
                    height: 372px;
                }
            }
            .topbox_l_smaimg{
                width: 85px;
                height: 372px;
                overflow: hidden;
                float: right;
                position: relative;
                &:hover #imgBtnTop{
                    display: block;
                }
                &:hover #imgBtnBtm{
                    display: block;
                }
                div{
                    
                    border: 1px solid #f4f4f4;
                    margin-bottom: 11px;
                    width: 83px;
                    height: 83px;
                    img{
                        display: block;
                        width: 83px;
                        height: 83px;
                        cursor: pointer;
                    }
                }
                #imgBtnTop{
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 85px;
                    height: 16px;
                    border: 0;
                    margin: 0;
                    padding: 0;
                    background: rgba($color: #333, $alpha: 0.5);
                    text-align: center;
                    display: none;
                    cursor: pointer;
                    i{
                        display: inline-block;
                        border: 4px solid #e7e7e7;
                        border-top-color: rgba($color: #fff, $alpha: 0);
                        border-left-color: rgba($color: #fff, $alpha: 0);
                        transform: rotate(-135deg);
                        margin-bottom: 2px;
                    }
                }
                #imgBtnBtm{
                    border: 0;
                    margin: 0;
                    padding: 0;
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 85px;
                    height: 16px;
                    background: rgba($color: #333, $alpha: 0.5);
                    text-align: center;
                    display: none;
                    cursor: pointer;
                    i{
                        display: inline-block;
                        border: 4px solid #e7e7e7;
                        border-top-color: rgba($color: #fff, $alpha: 0);
                        border-left-color: rgba($color: #fff, $alpha: 0);
                        transform: rotate(45deg);
                        margin-bottom: 7px;
                    }
                }

            }
        }
        .topbox_r{
            position: relative;
            float: right;
            width: 561px;
            .topbox_r_title{
                width: 100%;
                color: #333;
                font-size: 20px;
                font-weight: normal;
                margin-bottom: 4px;
            }
            .topbox_r_intro{
                font-size: 12px;
                color: #999;
            }
            .topbox_r_sales{
                margin-top: 4px;
                margin-bottom: 22px;
                span:nth-child(1){
                    color: #999;
                    font-size: 12px;
                }
                span:nth-child(2){
                    display: inline-block;
                    border: 1px solid #c00002;
                    color: #c00000;
                    font-size: 12px;
                    padding: 0 5px;
                    height: 18px;
                    margin-right: 6px;
                }
                span:nth-child(3){
                    display: inline-block;
                    height: 15px;
                    color: #333;
                    font-size: 12px;
                    vertical-align: text-bottom;;
                }
            }
            .topbox_r_prices{
                width: 541px;
                padding: 10px;
                margin-bottom: 26px;
                background: #f9f9f9;
                .topbox_r_prices_t{
                    width: 100%;
                    height: 37px;
                    margin: 12px 0 ;
                    h5{
                        width: 48px;
                        height: 32px;
                        color: #333;
                        font-size: 12px;
                        float: left;
                        line-height: 32px;
                        margin-right: 10px;
                        font-weight: normal;
                    }
                    span:nth-child(2){
                        color: #c00000;
                        font-size: 14px;
                    }
                    span:nth-child(3){
                        color: #c00000;
                        font-size: 30px;
                    }
                    span:nth-child(4){
                        color: #c00000;
                        font-size: 14px;
                    }

                }
                .topbox_r_prices_b{
                    width: 100%;
                    height: 48px;
                    margin-bottom: 12px;
                    h5{
                        width: 48px;
                        height: 32px;
                        color: #333;
                        font-size: 12px;
                        float: left;
                        line-height: 32px;
                        margin-right: 10px;
                        font-weight: normal;
                        span{
                            display: inline-block;
                            width: 12px;
                            height: 12px;
                            border: 1px solid #c00000;
                            border-radius: 50%;
                            font-size: 10px;
                            line-height: 0;
                            text-align: center;
                            line-height: 10px;
                            color: #c00000;
                            margin-left: 3px;
                        }
                    }
                    .topbox_r_pricesb_b{
                        width: 483px;
                        float: right;
                        div{
                            height: 24px;
                            float: left;
                            margin-right: 13px;
                            a{
                                display: inline-block;
                                width: 16px;
                                height: 16px;
                                border: 1px solid #c00000;
                                border-radius: 50%;
                                color: #c00000;
                                text-align: center;
                                font-size: 12px;
                            }
                            span{
                                color: #333;
                                font-size: 16px;
                                margin-left: 8px;
                            }
                        }
                    }
                }
            }
            .topbox_r_address{
                width: 541px;
                height: 14px;
                padding: 0 10px 26px 10px;
                color: #333;
                font-size: 14px;
                h5{
                    display: inline-block;
                    color: #333;
                    font-size: 12px;
                    margin-right: 10px;
                    font-weight: normal;
                }
                a{
                    color: #666;
                    margin-left: 10px;
                }
            }
            .topbox_r_color{
                width: 541px;
                padding: 0 10px;
                margin-bottom: 14px;
                h5{
                    width: 48px;
                    height: 32px;
                    color: #333;
                    font-size: 12px;
                    float: left;
                    line-height: 32px;
                    margin-right: 10px;
                    font-weight: normal;
                }
                .topbox_r_colorbox{
                    display: inline-block;
                    width: 473px;
                    div{
                        display: inline-block;
                        height: 22px;
                        border: 1px solid #d6d6d6;
                        padding: 4px 20px;
                        margin: 0 14px 14px 0;
                        color: #333;
                        font-size: 14px;
                        cursor: pointer;
                    }
                }
            }
            .topbox_r_edition{
                width: 541px;
                padding: 0 10px;
                margin-bottom: 14px;
                h5{
                    width: 48px;
                    height: 32px;
                    color: #333;
                    font-size: 12px;
                    float: left;
                    line-height: 32px;
                    margin-right: 10px;
                    font-weight: normal;
                }
                .topbox_r_editionbox{
                    display: inline-block;
                    width: 473px;
                    div{
                        display: inline-block;
                        height: 22px;
                        border: 1px solid #d6d6d6;
                        padding: 4px 20px;
                        margin: 0 14px 14px 0;
                        color: #333;
                        font-size: 14px;
                        cursor: pointer;
                    }
                }
            }
            .topbox_r_num{
                width: 541px;
                padding: 0 10px;
                margin-bottom: 14px;
                height: 32px;
                margin-bottom: 40px;
                h5{
                    width: 48px;
                    height: 32px;
                    color: #333;
                    font-size: 12px;
                    float: left;
                    line-height: 32px;
                    margin-right: 10px;
                    font-weight: normal;
                }
                div{
                    float: left;
                    width: 60px;
                    height: 30px;
                    border: 1px solid #d6d6d6;
                    border-left: 0;
                    border-right: 0;
                }
                #numBtnL{
                    width: 34px;
                    height: 30px;
                    border: 1px solid #d6d6d6;
                    text-align: center;
                    color: #d6d6d6;
                    display: inline-block;
                    font-size: 20px;
                    cursor: pointer;
                }
                #numBtnR{
                    width: 34px;
                    height: 30px;
                    border: 1px solid #d6d6d6;
                    text-align: center;
                    color: #d6d6d6;
                    display: inline-block;
                    font-size: 20px;
                    cursor: pointer;
                }
                input{
                    width: 60px;
                    height: 30px;
                    border: 0;
                    text-align: center;
                }
            }
            .topbox_r_line{
                width: 561px;
                height: 52px;
                #addBtn{
                    float: left;
                    width: 153px;
                    height: 50px;
                    padding: 0 6px;
                    border: 1px solid #845f3f;
                    background: #845f3f;
                    color: #fff;
                    font-size: 20px;
                    text-align: center;
                    line-height: 50px;
                    margin-right: 15px;
                    &:hover{
                        border: 1px solid #d1bfa6;
                        background: #d1bfa6;  
                    }
                }
                #buyBtn{
                    float: left;
                    width: 153px;
                    height: 50px;
                    padding: 0 6px;
                    border: 1px solid #845f3f;
                    background: #fff;
                    color: #845f3f;
                    font-size: 20px;
                    text-align: center;
                    line-height: 50px;
                    margin-right: 15px;
                    &:hover{
                        border: 1px solid #845f3f;
                        background: #845f3f;  
                        color: #fff;
                    }
                }
                #collectionBtn{
                    float: left;
                    width: 50px;
                    height: 50px;
                    border: 1px solid #ccc;
                    margin-right: 15px;
                    text-align: center;
                    &:hover{
                        border: 1px solid #845f3f;
                        background: #845f3f;  
                        i{
                            color: #fff;
                        }
                        p{
                            color: #fff;
                        }
                    }
                    i{
                        display: inline-block;
                        width: 30px;
                        height: 30px;
                        font-size:20px;
                        color: #333;
                        line-height: 30px;
                    }
                    p{
                        padding-bottom: 10px;
                        color: #333;
                        font-size: 12px;
                    }
                }
                #serviceBtn{
                    float: left;
                    width: 50px;
                    height: 50px;
                    border: 1px solid #ccc;
                    margin-right: 15px;
                    text-align: center;
                    &:hover{
                        border: 1px solid #845f3f;
                        background: #845f3f;  
                        i{
                            color: #fff;
                        }
                        p{
                            color: #fff;
                        }
                    }
                    i{
                        display: inline-block;
                        width: 30px;
                        height: 30px;
                        font-size:20px;
                        color: #333;
                        line-height: 30px;
                    }
                    p{
                        padding-bottom: 10px;
                        color: #333;
                        font-size: 12px;
                    }
                }
            }
        }
    }
    // 底部详情页
    .btmbox{
        width: 1080px;
        margin: 0 auto;
        .btmbox_l{
            width: 774px;
            float: left;
            .btmbox_l_head{
                width: 100%;
                height: 42px;
                background: #e7e7e7;
                li{
                    float: left;
                    width: 129px;
                    height: 100%;
                    color: #333;
                    font-size: 13px;
                    text-align: center;
                    line-height: 42px;
                    position: relative;
                    cursor: pointer;
                    a{
                        position: absolute;
                        display: inline-block;
                        height: 13px;
                        border-right: 1px solid rgb(204, 204, 204);
                        width: 100%;
                        top: 0;
                        bottom: 0;
                        left:0;
                        right: 0;
                        margin: auto;
                    }
                }
                .btmbox_l_headlast{
                    border: 0;
                }
                .btmbox_lhead_active{
                    border-bottom: 2px solid #845f3f;
                }
            }
            .btmbox_l_main{
                img{
                    display: block;
                }
            }
        }
        .btmbox_r{
            width: 262px;
            float: right;
            .btmbox_r_shop{
                width: 262px;
                height: 30px;
                border-bottom: 1px solid #e7e7e7;
                margin-bottom: 17px;
                padding-bottom: 13px;
                .btmbox_r_shopbox{
                    width: 100%;
                    height: 100%;
                    img{
                        display: block;
                        width: 30px;
                        height: 30px;
                        margin-right: 10px;
                        float: left;
                    }
                    .btmbox_r_shop_t{
                        width: 156px;
                        height: 30px;
                        float: left;
                        h6{
                            font-size: 14px;
                            font-weight: normal;
                            color: #333;
                            line-height: 14px;
                        }
                        p{
                            font-size: 12px;
                            color: #333;
                            line-height: 12px;
                        }
                    }
                    .btmbox_r_shop_in{
                        float: right;
                        width: 34px;
                        height: 28px;
                        border: 1px solid #845f3f;
                        background: #845f3f;
                        text-align: center;
                        color: #fff;
                        font-size: 13px;
                        padding: 0 6px;
                        line-height: 28px;
                        &:hover{
                            background: #d1bfa6;
                            border-color: #d1bfa6;
                        }
                    }
                }
            }
            .btmbox_r_title{
                width: 262px;
                height: 42px;
                margin-bottom: 17px;
                text-align: center;
                font-size: 16px;
                color: #333;
                font-weight: normal;
                span{
                    display: inline-block;
                    width: 16px;
                    height: 6px;
                    border-top: 1px solid #333;
                    margin: 0 12px;
                }
            }
            .btmbox_r_goods{
                width: 260px;
                height: 299px;
                border: 1px solid #f4f4f4;
                margin-bottom: 5px;
                transition: 0.5s;
                cursor: pointer;
                &:hover{
                    box-shadow: 0 0 10px 1px rgba($color: #999, $alpha: 0.5);;
                }
                .btmbox_rgoods_t{
                    width: 154px;
                    height: 153px;
                    padding: 22px 53px;
                    img{
                        width: 154px;
                        height: 154px;
                        display: block;
                    }
                }
                p{
                    width: 230px;
                    height: 38px;
                    padding: 0 15px;
                    margin-bottom: 10px;
                    line-height: 38px;
                    color: #845f3f;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                }
                h5{
                    width: 230px;
                    height: 30px;
                    padding:  0 15px;
                    font-size:16px ;
                    color: #333;
                    text-align: center;
                    background: #f4f4f4;
                    line-height: 30px;
                }
                h4{
                    width: 260px;
                    height: 24px;
                    text-align: center;
                    background: #f4f4f4;
                    line-height: 24px;
                    span:nth-child(1){
                        font-size: 12px;
                        color: #c33300;
                    }
                    span:nth-child(2){
                        font-size: 16px;
                        color: #c33300;
                    }
                }
            }
        }
    }
}

// 页角
.foot{
    width: 100%;
    margin-top:60px ;
    border-top: 1px solid #e7e7e7;
    .foot_box{
        width: 1080px;
        margin: 0 auto;
        padding-top: 45px;
        height: 92px;
        .foot_box_l{
            float: left;
            width: 123px;
            height: 45px;
            img{
                display: block;
                width: 123px;
                height: 45px;
            }
        }
        .foot_box_r{
            float: right;
            .foot_box_rl{
                float: left;
                span{
                    color: #666;
                    font-size: 12px;
                }
                a{
                    color: #666;
                    font-size: 12px;
                }
                p{
                    height: 23px;
                    line-height: 23px;
                    color: #666;
                    font-size: 12px;
                    vertical-align: middle;
                    span{
                        margin-right: 5px;
                    }
                    a{
                        margin-right: 5px;
                    }
                }

                p:nth-child(1){
                    span{
                        margin-right: 5px;
                    }
                    img{
                        display: inline-block;
                        width: 15px;
                        height: 15px;
                        vertical-align: middle;
                    }
                }
            }
            .foot_box_rr{
                float: right;
                width: 100px;
                height: 36px;
                padding-left: 30px;
                img{
                    display: block;
                    width: 100px;
                    height: 36px;
                }
            }
        }
    }
}

// 定位导航1
.flxedbar{
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    box-shadow: 0 0 30px 1px rgba($color: #7e7e7e, $alpha: 0.5);
    .flxedbar_box{
        padding: 0 5px;
        li{
            width: 50px;
            height: 50px;
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid #e7e7e7;
            &:hover{
                color: #a92112;
            }
            &:hover p{
                color: #a92112;
            }
            i{
                display: block;
                width: 30px;
                height: 30px;
                margin: 0 auto;
                font-size: 26px;
            }
            p{
                color: #333;
                font-size: 12px;
            }
        }
        .flxedbar_box_last{
            border-bottom: 0;
        }
    }
}

.addCartSuccess{
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba($color: #333, $alpha: 0.6);
    color: #fff;
    text-align: center;
    font-size: 18px;
    width: 230px;
    height: 40px;
    line-height: 40px;

}




// 放大镜蒙层 
.magnifierLayer{
    position: absolute;
    top: 0;
    left: 0;
    width: 170px;
    height: 170px;
    background: rgba($color: #333, $alpha: 0.5);
    display: none;
}
.magnifierLayer1{
    position: absolute;
    top: 0;
    left: 0;
    width: 372px;
    height: 372px;
    background: rgba($color: #fff, $alpha: 0);
}
// 放大镜
#magnifier{
    position: absolute;
    width: 372px;
    height: 372px;
    top: 0px;
    left: 0px;
    // img{
    //     position: absolute;
    //     display: block;
    //     height: 814px;
    //     width: 814px;
    //     top: 0px;
    //     left: 0px;
    // }
    background: url("https://img.youpin.mi-img.com/shopmain/7916d7613a347e1046926ecd540e1bd6.jpg@base@tag=imgScale&F=webp&h=1080&w=1080?w=1080&h=1080") no-repeat;
    background-size: 814px 814px;
    background-position: -100px -100px;
    display: none;
}